import React from 'react';
import {
  View,
  Text,
  TouchableOpacity,
  TouchableHighlight,
  Image,
} from 'react-native';


import TImage from '../../components/TImage';
import SizeUtils from '../../common/SizeUtils';
import Constants from '../../common/Constants';
import Config from '../../config';
import QZ_QunliaoItemView from './QZ_QunliaoItemView';
import QuanziConstants from './QuanziConstants';
import CommonListPage from '../common/CommonListPage';
import QZ_RequestQunliaoListAction from '../../actions/quanzi/QZ_RequestQunliaoListAction';
import ToastUtils from '../../common/ToastUtils';

export default class QZ_QunliaoListPage extends CommonListPage {
  constructor(props) {
    super(props);
  }

  _getListViewStyle() {
    return {
        width:SizeUtils.getWindowSize().width,
        height:(SizeUtils.getWindowSize().height - Config.paddingTop - SizeUtils.translateDesignHeightToCode(40)),
        backgroundColor:"#ffffff00"};
  }

  _onRenderItem(data, index) {
    return (<QZ_QunliaoItemView data={data} isMy={true}/>);
  }

  _onPressItem(data) {
    this.gotoPage(Config.pages.qz_qunliao_chat,data);
  }

  _requestData(page, listView) {
    new QZ_RequestQunliaoListAction().call(listView, {page:page, requestType:1});
  }
}
